import request from '@/utils/request'

// 查询能耗统计列表
export function listEnergy_consumption_statistics(query) {
  return request({
    url: '/system/energy_consumption_statistics/list',
    method: 'get',
    params: query
  })
}

// 查询能耗统计详细
export function getEnergy_consumption_statistics(statisticsId) {
  return request({
    url: '/system/energy_consumption_statistics/' + statisticsId,
    method: 'get'
  })
}

// 新增能耗统计
export function addEnergy_consumption_statistics(data) {
  return request({
    url: '/system/energy_consumption_statistics',
    method: 'post',
    data: data
  })
}

// 修改能耗统计
export function updateEnergy_consumption_statistics(data) {
  return request({
    url: '/system/energy_consumption_statistics',
    method: 'put',
    data: data
  })
}

// 删除能耗统计
export function delEnergy_consumption_statistics(statisticsId) {
  return request({
    url: '/system/energy_consumption_statistics/' + statisticsId,
    method: 'delete'
  })
}
